<?php
$c_rs= '';
$citydata = include(PHPCMS_ROOT.'city.php'); 
$_pid = intval($_GET['pid']) ? intval($_GET['pid']) : 0;
$_cid = intval($_GET['cid']) ? intval($_GET['cid']) : 0;
$_qid = intval($_GET['qid']) ? intval($_GET['qid']) : 0;

if($_pid)
{
	$c_rs=mysql_query("select * from city where id=".$_pid);
}
else if($_GET['city_name'])
{
	$c_rs=mysql_query("select * from city where city_ping='$_GET[city_name]'");
}
$c_row=mysql_fetch_array($c_rs);
if($_pid)
{
	$cityname = $citydata[$_pid]['city_name'];
}
if($_cid)
{
	$cityname = $citydata[$_cid]['city_name'];
}
if($_qid)
{
	$cityname = $citydata[$_cid]['city_name']."、".$citydata[$_qid]['city_name'];
}
?>